package com.firstweb.dao;

import java.util.List;

import org.apache.ibatis.mapping.ParameterMap;
import org.apache.ibatis.session.SqlSession;
import org.mybatis.spring.support.SqlSessionDaoSupport;
import org.springframework.stereotype.Component;

import com.firstweb.test.entity.Customer;
import com.firstweb.test.entity.Order;
import com.firstweb.test.mapper.TestMapper;

public class TestDaoImpl extends SqlSessionDaoSupport implements TestMapper{

	@Override
	public Customer getinfo(int id) {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public List<Order> getOrdersbyCustomerId(int id) {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public List<Order> getAllOrder() {
		final SqlSession session = this.getSqlSession();
		
		return session.selectList("com.firstweb.test.mapper.TestDao");
	}

}
